package com.example.testcontrol;

import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.os.Bundle;

public class Image_View extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.image_view);
		
	}
	
	 protected void setOrientation()
	 {
		int current = getRequestedOrientation();
		// only switch the orientation if not in portrait
		if ( current != ActivityInfo.SCREEN_ORIENTATION_NOSENSOR ) {
		    setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_NOSENSOR );
		}
	 }
}
